package br.ufpe.cin.imlm2.jbeat.soot.common.filters;

import soot.FastHierarchy;
import soot.Scene;
import soot.SootClass;

public class SubClassFilter extends SootClassFilter {

	private SootClass	parentException;

	public SubClassFilter( SootClass parentException ) {
		super();
		this.parentException = parentException;
	}

	@Override
	public boolean retains( SootClass t ) {
		FastHierarchy fh = Scene.v().getOrMakeFastHierarchy();
		return fh.isSubclass( t, this.parentException );
	}

}
